//
//  HEReportReadFooterCell.m
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/25.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import "HEReportReadFooterCell.h"

@interface HEReportReadFooterCell ()

@property (nonatomic, strong) UILabel *titleLb;

@end

@implementation HEReportReadFooterCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.selectionStyle = UITableViewCellSelectionStyleNone;
 
        self.qmui_borderPosition = QMUIViewBorderPositionTop;
        self.qmui_borderWidth = 0.5;
        self.qmui_borderColor = CSplitLineColor;
     
        [self initUI];
    }
    return self;
}

- (void)initUI {
    
    _titleLb = [UILabel new];
    _titleLb.text = @"服务优势";
    _titleLb.font = DYBlodFont(18);
    _titleLb.textColor = CNavLightBlackColor;
    [self.contentView addSubview:_titleLb];
    
    [_titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).mas_offset(15);
        make.left.equalTo(self.contentView).mas_offset(15);
        make.right.equalTo(self.contentView).mas_offset(-15);
    }];
    
    UIImageView *repView = [UIImageView new];
    repView.image = IMAGE_NAMED(@"guide_read");
    repView.contentMode = UIViewContentModeScaleAspectFill;
    [self.contentView addSubview:repView];
    
    [repView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_titleLb.mas_bottom).mas_offset(15);
        make.centerX.equalTo(self.contentView);
        make.width.mas_offset(350);
        make.height.mas_offset(160);
        make.bottom.equalTo(self.contentView).mas_offset(-15);
    }];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
